<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Miner_cat')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-miner_cat" class="form-control selectpicker" name="row[miner_cat]">
                {foreach name="minerCatList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Miner_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-miner_name" class="form-control" name="row[miner_name]" type="text" value="">
        </div>
    </div>
<!--     <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Miner_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-miner_type" class="form-control selectpicker" name="row[miner_type]">
                {foreach name="minerTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Miner_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-miner_image" class="form-control" size="50" name="row[miner_image]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-miner_image" class="btn btn-danger plupload" data-input-id="c-miner_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-miner_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-miner_image" class="btn btn-primary fachoose" data-input-id="c-miner_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-miner_image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-miner_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">累计可产量(枚):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-output_limit" class="form-control" step="0.00001" name="row[output_limit]" type="number" value="0.00000">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Output_value')}(枚):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-output_value" class="form-control" step="0.00001" name="row[output_value]" type="number" value="0.00000">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Arithmetic_value')}(T):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-arithmetic_value" class="form-control" step="0.00001" name="row[arithmetic_value]" type="number" value="0.00000">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">运行周期(天):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-run_cycle" class="form-control" step="1" name="row[run_cycle]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">租赁价:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">激活损耗(枚):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-active_price" class="form-control" step="0.01" name="row[active_price]" type="number" value="0.00">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Surplus')}(台):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-surplus" class="form-control" step="1" name="row[surplus]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Day_limit')}(台):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-day_limit" class="form-control" step="1" name="row[day_limit]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Miner_limit')}(台):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-miner_limit" class="form-control" step="1" name="row[miner_limit]" type="number" value="0">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <input  id="c-status" name="row[status]" type="hidden" value="1">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-status" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success  fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
